package com.huawei.hwclouds.lubanops.demo.common.biz;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author feihonghui
 **/
public class PageList<E> implements Serializable {

    private static final long serialVersionUID = 1977215788906692135L;

    /**
     * 总行数
     */
    int totalCount = 0;

    /**
     * 总的页数
     */
    private int pageCount = 0;

    private AbstractPageQueryRequest param;

    private List<E> dataList = new ArrayList<E>();

    public PageList() {
        super();
    }

    public PageList(AbstractPageQueryRequest param) {
        super();
        this.param = param;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public AbstractPageQueryRequest getParam() {
        return param;
    }

    public void setParam(AbstractPageQueryRequest param) {
        this.param = param;
    }

    public List<E> getDataList() {
        return dataList;
    }

    public void setDataList(List<E> dataList) {
        this.dataList = dataList;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }
}
